ReadOnly
Specifies whether the field is read-only or writable.
Values
This property can take one of the following values:
- true. Specifies that the field is read-only.
- false. Specifies that the field is writable.
Example
Record=CRM.FindRecord('person', 'pers_personid=17');
PersonBlock = CRM.GetBlock('PersonBoxLong');
Title = PersonBlock.GetEntry('pers_titlecode');
Title.ReadOnly = 'true';
CRM.AddContent(PersonBlock.Execute(Record));
Response.Write(CRM.GetPage());
Makes the pers_titlecode field read-only.